<?php
namespace app\admin\validate;

use think\Validate;

class Site extends Validate
{
    protected $rule = [
        'link'  => 'require|unique:site',
        'domain'  => 'require|unique:site',
    ];

    protected $message = [
        'link.require'  => '必填',
    ];
}